<?php
namespace Amis\form;
class City extends FormItem
{
    public string $type = 'input-city';

    public function allowCity(bool $allowCity = true)
    {
        $this->allowCity = $allowCity;
        return $this;
    }

    public function allowDistrict(bool $allowDistrict = true)
    {
        $this->allowDistrict = $allowDistrict;
        return $this;
    }

    public function searchable(bool $searchable = false)
    {
        $this->searchable = $searchable;
        return $this;
    }

    public function extractValue(bool $extractValue = true)
    {
        $this->extractValue = $extractValue;
        return $this;
    }
}